local joyex__dangxian = fk.CreateSkill {

  name = "joyex__dangxian",

  tags = {  },

}



joyex__dangxian:addEffect(fk.TurnStart, {
  name = "joyex__dangxian",
  anim_type = "offensive",
  events = {fk.TurnStart},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(joyex__dangxian.name)
  end,
  on_use = function(self, event, target, player, data)
    local cards = player.room:getCardsFromPileByRule("slash", 1)
    if #cards > 0 then
      player.room:obtainCard(player, cards[1], true, fk.ReasonJustMove)
    end
    player:gainAnExtraPhase(Player.Play)
  end,
})

return joyex__dangxian